﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpGeneric
{
    /// <summary>
    /// 课程信息类(实体类)
    /// </summary>
    public class Course
    {
        //构造方法 必须和类名称一样
        public Course() { }
        public Course(int courseId, string courseName, string company, string teacher) 
        { 
            this.CourseId = courseId;
            this.CourseName = courseName;
            this.Company = company;
            this.Teacher = teacher;
        }
        //属性
        public int CourseId {  get; set; }
        public string CourseName { get; set; }
        public string Company { get; set; }
        public string Teacher { get; set; }
    }
}
